package com.jl.cloud.commom.exception;


import lombok.Data;

/**
 * 基础异常类
 * @author liang.jun
 */
@Data
public class BaseException extends RuntimeException {


	private static final long serialVersionUID = -143566467845434L;


	private String errorCode;
	private String errorMsg ;
	

	public BaseException(ExceptionMessage exceptionEnum) {
		super();
		this.errorCode = exceptionEnum.getCode();
		this.errorMsg = exceptionEnum.getMessage();
	}



}
